package cn.lgwen.candy.runtime.queue;

/**
 * 2019/12/24
 * aven.wu
 * danxieai258@163.com
 * T data type
 */
public interface Queue<T> {

    /**
     * add element to queue and it will block if queue is full
     * @param t
     */
     void add(T t);

    /**
     * take element from queue it will block if queue is empty
     * @return t type of T
     */
     T take();
}
